package org.linlinjava.litemall.core.dto;

import org.linlinjava.litemall.core.util.BeanUtil;
import org.linlinjava.litemall.db.domain.Vendor;

public class VendorAddressDTO {
    private String addr;
    private String roomNumber;
    private String lnglat;

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getRoomNumber() {
        return roomNumber;
    }

    public void setRoomNumber(String roomNumber) {
        this.roomNumber = roomNumber;
    }

    public String getLnglat() {
        return lnglat;
    }

    public void setLnglat(String lnglat) {
        this.lnglat = lnglat;
    }

    public static VendorAddressDTO fromVendor(Vendor vendor) {
        return BeanUtil.transformBean(vendor, VendorAddressDTO.class);
    }
}
